#include "engine.h"
#include "log.h"
#include "sdl\sdl.h"

bool Engine_init()
{
  Log_init();
  
  if(SDL_Init(SDL_INIT_EVERYTHING)<0)
  {
    fprintf(stderr,"Failed to initialize SDL: %s\n",SDL_GetError());
    SDL_Quit();
    return false;
  }
  
  Rand_init();
  
  return true;
}

void Engine_quit()
{
  SDL_Quit();
  
  Log_quit();
}
